home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 32
/
Aminet 32 (1999)(Schatztruhe)[!][Aug 1999].iso
/
Aminet
/
disk
/
misc
/
ADFlib.lha
/
Lib
/
Generic
/
adf_nativ.h
< prev
Wrap
C/C++ Source or Header
|
1999-01-24
|
1KB
|
52 lines
/*
* adf_nativ_.h
*
* file
*/
#ifndef ADF_NATIV_H
#define ADF_NATIV_H
#include<stdio.h>
#include"adf_str.h"
#define NATIVE_FILE 8001
#ifndef BOOL
#define BOOL int
#endif
#ifndef RETCODE
#define RETCODE long
#endif
struct nativeDevice{
FILE* fd;
};
struct nativeFunctions{
/* called by adfMount() */
RETCODE (*adfInitDevice)(struct Device*, char*);
/* called by adfReadBlock() */
RETCODE (*adfNativeReadSector)(struct Device*, long, int, unsigned char*);
/* called by adfWriteBlock() */
RETCODE (*adfNativeWriteSector)(struct Device*, long, int, unsigned char*);
/* called by adfMount() */
BOOL (*adfIsDevNative)(char*);
/* called by adfUnMount() */
RETCODE (*adfReleaseDevice)();
};
void adfInitNativeFct();
RETCODE myReadSector(struct Device *dev, long n, int size, unsigned char* buf);
RETCODE myWriteSector(struct Device *dev, long n, int size, unsigned char* buf);
RETCODE myInitDevice(struct Device *dev, char* name);
RETCODE myReleaseDevice(struct Device *dev);
BOOL myIsDevNative(char*);
#endif /* ADF_NATIV_H */
/*#######################################################################################*/